Detecting pedestrians using patterns of motion and apprearance in videos

ABSTRACT

A method detects a moving object in a temporal sequence of images. Images are selected from the temporally ordered sequence of images. A set of functions is applied to the selected images to generate a set of combined images. A linear combination of filters is applied to a detection window in the set of combined images to determine motion and appearance features of the detection window. The motion and appearance features are summed to determine a cumulative score, which enables a classification of the detection window as including the moving object.

FIELD OF THE INVENTION

[0001] The invention relates generally to computer vision and pattern recognition, and more particularly to detecting moving objects such as pedestrians in videos.

BACKGROUND OF THE INVENTION

[0002] For detecting and recognizing objects in images, pattern recognition approaches have achieved measurable success in the domain of computer vision, examples include face, automobile, and pedestrian detection, see e.g., Avidan, “Support vector tracking,” IEEE Conference on Computer Vision and Pattern Recognition, 2001, Papageorgiou et al., “A general framework for object detection,” International Conference on Computer Vision, 1998, Rowley et al., “Neural network-based face detection,” IEEE Patt. Anal. Mach. Intell., Volume 20, pages 22-38, 1998, Schneiderman et al., “A statistical method for 3D object detection applied to faces and cars,” International Conference on Computer Vision, 2000, and Viola et al., “Rapid object detection using a boosted cascade of simple features,” IEEE Conference on Computer Vision and Pattern Recognition, 2001.

[0003] Those approaches generally use machine learning to construct detectors or filters from a large number of training images. The filters are then scanned over an input image in order to find a pattern of features, which is consistent with a target object. Those systems work very well for the detection of faces, but less well for pedestrians, perhaps because the images of pedestrians are more varied, due to changes in body pose and clothing, whereas faces are fairly uniform in texture and structure and with relatively little motion. Therefore, it is desired to provide a method that works on a temporally ordered sequence of images, as well as on a single static image.

[0004] The detection of pedestrians is made even more difficult in surveillance applications, where the resolution of the images is relatively low, e.g., the target object may only be a total of about 100-200 pixels, e.g., 5 by 20 or 10 by 20 pixels. Though improvement of pedestrian detection using better functions of image intensity is a valuable pursuit, a new solution is required.

[0005] It is well known that patterns of human motion, particularly the pendulum like motion of walking, is distinguishable from other sorts of motion, and that motion can be used to recognize and detect people, see Cutler et al., “Robust real-time periodic motion detection: Analysis and applications,” IEEE Patt. Anal. Mach. Intell., Volume 22, pages 781-796, 2000, Lee, “Gait dynamics for recognition and classification,” MIT Al Lab., Memo, AIM-2001-019, MIT, 2001, Liu et al., “Finding periodicity in space and time,” IEEE International Conference on Computer Vision, pages 376-383, 1998, and Polana et al., “Detecting activities,” Journal of Visual Communication and Image Representation, June 1994.

[0006] In contrast with the intensity-based approaches, they typically try to track moving objects over many frames, and then analyze the motion to look for periodicity or other cues. Processes that detect motion ‘styles’ are quite efficient, and it is possible to conduct an exhaustive search over entire images at multiple scales of resolution. When trained with a large data set of images, they can achieve high detection rates and very low false positive rates.

[0007] The field of human motion analysis is quite broad and has a history stretching back to the work of Hoffman et al., “The interpretation of biological motion,” Biological Cybernetics, pages 195-204, 1982. Most of the prior art systems presume that half the problem has already been solved, i.e., a particular type of moving object, for example, a person, has been detected, and that the only remaining problem is to recognize, categorize, or analyze the long-term pattern of motion of that specific moving object.

[0008] Recently, interest in motion-based methods has increased because of the possible application of those methods to problems in surveillance. An excellent overview of related work in this area is described by Cutler et al., above. They describe a system that works directly on images. Their system first performs object segmentation and tracking. The objects are aligned to the object's centroids. A 2D lattice is then constructed, to which period analysis is applied.

[0009] The field of object detection is equally broad, although systems that perform direct pedestrians detection, using both intensity and motion information at the same time, are not known. Pedestrians have been detected in a static intensity image by first extracting edges and then matching edges with a set of examples, see Gavrila et al, “Real-time object detection for “smart” vehicles,” IEEE International Conference on Computer Vision, pages 87-93, 1999. Their system is a highly optimized, and appears to have been a candidate for inclusion in automobiles. Nevertheless published detection rates were approximately 75%, with a false positive rate of 2 per image. Other related work includes that of Papageorgiou et. al, above. That system detects pedestrians using a support vector machine trained on an overcomplete wavelet basis. Based on the published experimental data, their false positive rate is significantly higher than for the related face detection systems.

[0010] Therefore, it is desired to extract directly short term patterns of motion and appearance information, from a temporal sequence of images in order to detect instances of a moving object, such as pedestrians.

SUMMARY OF THE INVENTION

[0011] The invention provides a system for detecting specific types of moving objects by concurrently integrating image intensity and motion information. A set of filters is scanned over a set of combined images. For example, the filters are rectangular, and the combined images are obtained by applying functions to consecutive images in the video. The scanning of the filters produces feature values. The features are summed and classified.

[0012] A classifier is trained to take advantage of both motion and appearance information of a particular type of object, such as a pedestrian. Some past approaches have built detectors based on motion information. Other detectors are based on appearance information. However, the invention integrates both motion and appearance information in a single detector.

BRIEF DESCRIPTION OF THE DRAWINGS

[0013]FIG. 1 is a flow diagram of a method for detecting moving objects according to the invention.

[0014]FIGS. 2A-2F are block diagrams of rectangle filters used by the invention; and

[0015]FIGS. 3A-3H are block diagrams of combined images used by the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0016]FIG. 1 shows a method 100 for detecting a moving object 105, e.g. a pedestrian, in a temporally ordered sequence of images 101, i.e., a video. Selected images 111 are obtained 110 from the input video 101, e.g. adjacent pairs, overlapping pairs, every third image, etc. Functions 102 are applied 120 to the selected images 111 to produce sets of combined images 121. The combined images are partitioned into detection windows or “patches” of various sizes, for example, the entire image, four windows, each ¼ of the image, and so forth. Filters 200 are scanned and evaluated over the detection windows of the sets of combined images to determine 130 features 131, which are summed 140 into cumulative scores C 141. The cumulative scores are classified 150 to determine whether, indeed, a specific detection window includes a particular type of moving object, for example, a pedestrian 105. This is repeated 151 for all detection windows, for all combined images, and then repeated 152 for all images in the video 101.

[0017] Filters, Features, and Classifiers

[0018] As shown in FIGS. 2A-2F, our dynamic pedestrian detector uses rectangle filters 200 as described by in U.S. Patent Application Ser. No. 10/200,726, “Object Recognition System,” filed by Viola et al., on Jul. 22, 2002, incorporated herein by reference.

[0019]FIG. 2F shows a rectangle filter 200 relative to the enclosing detection windows 201, eight in this example combined image 202. It should be noted that tens of thousands other simple configurations of rectangle filters can be used. The filters can be of various sizes to match the sizes of the detection windows. For two rectangle filters, the sum of intensities of the pixels within the unshaded rectangle is subtracted from the sum of the intensity of the pixels in the shaded rectangle. For three-rectangle filters, the sum of pixels in unshaded rectangle is multiplied by two to account for twice as many shaded pixels, and so forth. Other combinatorial functions can also be used with the filters according to the invention. We prefer simple operations for our filters because they are very fast to evaluate, when compared with more complex filters of the prior art.

[0020] Viola et al. use the rectangle filters for detecting static faces in a single image. We extend their work in two ways. First, we also use a rectangle filter that has its internal components arranged diagonally, see FIG. 2E. Diagonal filter, as an advantage, are suited to detect pendulum like leg movement. In addition, diagonal filter are sensitive to objects at various orientations. The angle of the diagonal can be controlled by the aspect ratios of the component rectangles within the filter. Second, we apply the filters to combinations of temporally displaced image, as described below. Depending on their design, these rectangle filters can be evaluated extremely rapidly at various scales, orientations, and aspect ratios to measure region averages. Although these filters may appear to be somewhat limited, it can be demonstrated that they provide useful information that can be boosted to perform accurate detection of specific moving objects, such as pedestrians.

[0021] Formally, operations with our filters, features and classifiers are defined as follows, see Viola et al. for additional details. An image feature h_(i)(x) is assigned a weight α_(j) or β_(j) according to ${h_{j}(x)} = \left\{ {\begin{matrix} \alpha_{j} & {{{if}\quad {f_{j}(x)}} > \theta_{j}} \\ \beta_{j} & {otherwise} \end{matrix},} \right.$

[0022] where a filter f_(j)(x) is a linear function of an otherwise image x, i.e., a detection window, and θ_(j) is a predetermined filter threshold value. An cumulative sum C(x) is assigned a value 1 or 0 according to ${C(x)} = \left\{ {\begin{matrix} 1 & {{{if}\quad {\sum\limits_{j}^{\quad}{h_{j}(x)}}} > T} \\ 0 & {otherwise} \end{matrix},} \right.$

[0023] where h_(j) are multiple features of the image x, and T is a predetermined classifier threshold. Definitions that concurrently consider appearance and motion are described below.

[0024] In the prior art, motion information has been extracted from pairs of images in various ways, including optical flow and block motion estimation. Block motion estimation requires the specification of a comparison window, which determines the scale of the estimate. This is not entirely compatible with multi-scale object detection. In the context of object detection, optical flow estimation is typically quite time consuming, requiring hundreds or thousands of operations per pixel. We desire something faster.

[0025] Although this invention has been described using rectangle filters to determine feature values for the classifier, it should be understood, that other types of filters could be used. For example, other linear or non-linear filters, such as Gabor filters or Gaussian filters can be in place of rectangle filters. The advantage of rectangle filters is that they are extremely computationally efficient to evaluate. However, other types of filters can possibly capture more complicated motion and appearance information, and may be advantageous for that reason, see Daugman, “Uncertainty Relation for Resolution in Space, Spatial Frequency, and Orientation Optimized by Two-Dimensional Visual Cortical Filters,” J. Opt. Soc. Am. A, vol 2, no 7, pp. 1160-1169, July 1985.

[0026] Combined Images

[0027] Therefore, as shown in FIGS. 3A-3H, our features, unlike those of Viola et al., operate on the sets of combined images 121. The sets of combined images can be determined by applying various functions 102 to the selected images 111. For example, the selected set of images includes pairs of consecutive images—disjoint or overlapping. Alternatively, the set can include every tenth image over a predetermined period of time, or the set can include triplets of images. Other combinations and temporal orderings are also possible in the selected images 111.

[0028] A function 102, when applied to the selected images 111, generates a “combined” image. For example, the function can simply select one image of the set, FIG. 3A. The function can subtract the selected images in the set from each other. In this case, the combined image is what is known as a difference or delta image, FIG. 3B. Regions in the combined image where the sum of the absolute values of the difference is non-zero, e.g., along object edges, correspond to motion. The magnitude and direction of motion can also be determined as described below.

[0029] The direction of motion can be determined by applying other functions 102 to the selected images 111. For example, the function can “shift” the images in the set, before taking the difference. The shifting can be linear, rotational, scale, or combinations thereof, to detect, for example, linear motion substantially in the plane of the images, circular motion, or motion substantially perpendicular to the plane of the images. FIGS. 3C and 3D show up (U) and (D) shifted images, FIGS. 3E and 3F show left (L) and right (R) shifted images, FIG. 3F shows rotated ®) images, and FIG. 3H shows shifting in scale (s). This group of functions can be represented by:

[0030] a. I=I_(t)|I_(t+1)

[0031] Δ=abs(I_(t)-I_(t+1)),

[0032] U=abs(I_(t) I_(t+1)↑),

[0033] D=abs(I_(t)-I_(t+1)↓),

[0034] L=abs(I_(t)-I_(t+1)←),

[0035] R=abs(I_(t)-I_(t+1)→),

[0036] C=abs(I_(t)-I_(t+1)®),

[0037] s=abs(I_(t)-I_(t+1) s),

[0038] where I_(t) and I_(t+1) are images in time, and the arrows indicate linear shift operators, ® is rotation, and s indicates scaling. The shift can be one or more pixels. It should be noted that other differences, and other shift operations are possible, although the above examples are simple and quick to compute for our purposes.

[0039] One motion feature compares sums of absolute differences between the difference image Δ, and one or more of the shifted images of the group {U, L, R, D, ®, s} according to f_(i)=r_(i)(Δ)−r_(i)(S), where S is one of {U, L, R, D, ®), s}, and r_(i) is a sum within the detection window. These features extract information related to the likelihood that a particular region is moving in a given direction.

[0040] Another motion feature compares sums within the same image according to f_(j)=φ_(j)(S), where φ_(j) is a filter like the examples shown in FIGS. 1A-1G. These features approximately measure motion shear.

[0041] Another motion feature measures the magnitude of motion in one of the motion images as: f_(k)=r_(k)(S).

[0042] The magnitude of motion can also be determined by the temporal difference between the images in the set.

[0043] We also use appearance features, which use filters that operate on a single image in the set: f_(m)=φ(I_(t) ).

[0044] It should be noted, that once a moving object has been detected in some region of an image, then it becomes possible to track the object in subsequent images to get a better understanding of the magnitude and direction of motion. Because the location of the moving object is known, only a small part of the subsequent images need to be evaluated, which can be performed at a much faster frame rate.

[0045] The motion features as well as the appearance features can be evaluated rapidly using an “integral image” of the functions {I_(t), Δ, U, D, L, R, ®, s}. Because the filters can have any size, aspect ratio, or orientation, as long as they fit in the detection window, there are very many possible motion and appearance features. The filters can also be scaled to various sizes. These can be stored in a cache for fast processing. During training, the feature that best separate positive examples from negative examples is selected.

[0046] The motion feature 131 F_(j) is F_(j)(I_(t), I_(t)+1) $\begin{matrix} {{F_{j}\left( {I_{t},I_{t + 1}} \right)} = \left\{ {\begin{matrix} \alpha_{j} & {{{{if}\quad {f_{j}\left( {\Delta,U,D,L,R,®,s} \right)}} > t_{j}}} \\ \beta_{j} & {{otherwise}} \end{matrix},} \right.} \\ {= \left\{ {\begin{matrix} 1 & {{{{if}\quad {\sum\limits_{i = 1}^{N}{F_{j}\quad \left( {I_{t},\Delta,U,D,L,R,®,s} \right)}}} > 0}} \\ 0 & {{otherwise}} \end{matrix}.} \right.} \end{matrix}$

[0047] and the cumulative score 141 is C(I_(t), I_(t)+1)

[0048] Image Pyramids

[0049] In order to support detection at multiple scales, the functions 102 {↑, ↓, ←, →, ®), s} are defined with respect to the detection scale. This ensures that measurements of motion velocity are made in a scale invariant way. Scale invariance is achieved during training by scaling the training images to a base resolution of 20 by 15 pixels. The scale invariance of the detection is achieved by operating on image pyramids. Initially, the pyramids of I_(T) and I_(T+1) are computed. Pyramid representations of {Δ, U, D, L, R, ®), s} are computed as:

[0050] Δ^(l)=abs(I^(l) _(t)-I_(t)+1),

[0051] U^(l)=abs(I^(l) _(t)-I^(l) _(t)+1↑),

[0052] D^(l)=abs(I^(l) _(t)-I^(l) _(t)+1↓)

[0053] L^(l)=abs(I^(l) _(t)-I^(l) _(t)+1←),

[0054] R^(l)=abs(I^(l) _(t)-I^(l) _(t)+1→),

[0055] ®^(l)=abs(I^(l) _(t)-I^(l) _(t)+1®), and

[0056] s^(l)=abs(I^(l) _(t)-I^(l) _(t)+1s),

[0057] where X^(l) refers to the l^(th) level of the pyramid. Classifiers and features, which are learned from scaled 20 by 15 training images, operate on each level of the pyramid in a scale invariant fashion.

[0058] Training

[0059] The training process uses Adaboost to select a subset of features and construct the classifiers. Adaboost provides an effective learning algorithm and strong bounds on generalized performance, see Freund et al., “A decision-theoretic generalization of on-line learning and an application to boosting,” Computational Learning Theory, Eurocolt '95, pages 23-37. Springer-Verlag, 1995, Schapire et al., “Boosting the margin: A new explanation for the effectiveness of voting methods,” Proceedings of the Fourteenth International Conference on Machine Learning, 1997, and Tieu et al., “Boosting image retrieval,” International Conference on Computer Vision, 2000.

[0060] Effect of the Invention

[0061] The invention provides a method for detecting moving objects in a video sequence. The method uses rectangular filters that are scanned over combined image to determine features of the combined images. The features are summed to detect particular moving objects, such as pedestrians.

[0062] Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention. 

We claim:
 1. A method for detecting a moving object in a temporal sequence of images of a video, comprising: selecting images from the temporally ordered sequence of images; applying a set of functions to the selected images to generate a set of combined images; evaluating a linear combination of filters on a detection window in the set of combined images to determine motion and appearance features of the detection window; summing the motion and appearance features to determine a cumulative score; and classifying the detection window as including the moving object when the cumulative score is greater than a predetermined threshold
 2. The method of claim 1 wherein the moving object is a pedestrian.
 3. The method of claim 1 wherein the selected images are an adjacent pair of images.
 4. The method of claim 1 wherein the selecting, applying, evaluating, summing and classifying is repeated for the entire video.
 5. The method of claim 1 further comprising: partitioning each combined image into a set of detection windows; and repeating the evaluating, summing, and classifying for each detection window.
 6. The method of claim 1 wherein internal components of a particular filter is rectangular and arranged on a diagonal.
 7. The method of claim 6 wherein each rectangle filter is sized to match the associated detection window.
 8. The method of claim 1 wherein a particular feature h_(j) is evaluated to a weight α_(j) or β_(j) according to ${h_{j}(x)} = \left\{ {\begin{matrix} \alpha_{j} & {{{if}\quad {f_{j}(x)}} > \theta_{j}} \\ \beta_{j} & {otherwise} \end{matrix},} \right.$

where a particular filter f_(j)(x) is a linear function of the detection window x, and θ_(j) is a predetermined filter threshold value.
 9. The method of claim 8 wherein a particular cumulative sum C(x) is assigned a value 1 or 0 according to ${C(x)} = \left\{ {\begin{matrix} 1 & {{{if}\quad {\sum\limits_{j}^{\quad}{h_{j}(x)}}} > T} \\ 0 & {otherwise} \end{matrix},} \right.$

where h_(j) are multiple evaluated features of the detection window x, and T is the predetermined classifier threshold.
 10. The method of claim 1 wherein a particular combined image is a difference of the selected images.
 11. The method of claim 1 wherein a particular combined image is a difference of shifted selected images.
 12. The method of claim 11 wherein the shifting is linear.
 13. The method of claim 11 wherein the shifting is rotational.
 14. The method of claim 11 wherein the shifting is in scale.
 15. The method of claim 1 wherein the set of functions are defined with respect to a scale of the detection window.
 16. The method of claim 1 further comprising: determining a direction of motion of the moving object.
 17. The method of claim 1 further comprising: determining a magnitude of motion of the moving object.
 18. The method of claim 1 wherein the filter is a rectangle filer.
 19. The method of claim 19 wherein the filter is linear.
 20. The method of claim 1 wherein the filter is non-linear. 